package com.baifc.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * projectName: spring-in-action-web
 * packageName: com.baifc.web
 * Created: 2019/5/7.
 * Auther: baifc
 * Description:
 */
@Controller
@RequestMapping({"/", "/homepage"})
public class HomeController {

    @RequestMapping(value = "/home", method = RequestMethod.GET)
//    @RequestMapping(method = RequestMethod.GET)
    public String home() {
        return "home";
    }
}
